package com.corpcredit.model;

// Generated Jul 22, 2008 11:56:54 PM by Hibernate Tools 3.2.0.CR1

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * Ykfcpjxs generated by hbm2java
 */
@Entity
@Table(name = "ykfcpjxs")
public class Ykfcpjxs implements java.io.Serializable
{

    private Long id;
    private int version;
    private Jbqk jbqk;
    private String username;
    private String operation;
    private Date optdate;
    private String mc;
    private String kssj;
    private String jfsj;
    private String dz;
    private BigDecimal zzj;
    private Long sl;
    private Long jzmj;
    private BigDecimal ysmj;
    private BigDecimal yssr;
    private BigDecimal xsmj;
    private BigDecimal xssr;
    private BigDecimal symj;
    private BigDecimal syje;
    private Short xh;

    public Ykfcpjxs()
    {
    }

    public Ykfcpjxs( Long id, String mc )
    {
        this.id = id;
        this.mc = mc;
    }

    public Ykfcpjxs( Long id,
                     Jbqk jbqk,
                     String username,
                     String operation,
                     Date optdate,
                     String mc,
                     String kssj,
                     String jfsj,
                     String dz,
                     BigDecimal zzj,
                     Long sl,
                     Long jzmj,
                     BigDecimal ysmj,
                     BigDecimal yssr,
                     BigDecimal xsmj,
                     BigDecimal xssr,
                     BigDecimal symj,
                     BigDecimal syje,
                     Short xh )
    {
        this.id = id;
        this.jbqk = jbqk;
        this.username = username;
        this.operation = operation;
        this.optdate = optdate;
        this.mc = mc;
        this.kssj = kssj;
        this.jfsj = jfsj;
        this.dz = dz;
        this.zzj = zzj;
        this.sl = sl;
        this.jzmj = jzmj;
        this.ysmj = ysmj;
        this.yssr = yssr;
        this.xsmj = xsmj;
        this.xssr = xssr;
        this.symj = symj;
        this.syje = syje;
        this.xh = xh;
    }

    @Id
    @Column(name = "ID", unique = true, nullable = false)
    @GeneratedValue(strategy=GenerationType.AUTO)
    public Long getId()
    {
        return this.id;
    }

    public void setId( Long id )
    {
        this.id = id;
    }

    @Version
    @Column(name = "version", nullable = false)
    public int getVersion()
    {
        return this.version;
    }

    public void setVersion( int version )
    {
        this.version = version;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "jbq_ID")
    public Jbqk getJbqk()
    {
        return this.jbqk;
    }

    public void setJbqk( Jbqk jbqk )
    {
        this.jbqk = jbqk;
    }

    @Column(name = "username", length = 50)
    public String getUsername()
    {
        return this.username;
    }

    public void setUsername( String username )
    {
        this.username = username;
    }

    @Column(name = "operation", length = 20)
    public String getOperation()
    {
        return this.operation;
    }

    public void setOperation( String operation )
    {
        this.operation = operation;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "optdate", length = 23)
    public Date getOptdate()
    {
        return this.optdate;
    }

    public void setOptdate( Date optdate )
    {
        this.optdate = optdate;
    }

    @Column(name = "mc", nullable = false, length = 50)
    public String getMc()
    {
        return this.mc;
    }

    public void setMc( String mc )
    {
        this.mc = mc;
    }

    @Column(name = "kssj", length = 10)
    public String getKssj()
    {
        return this.kssj;
    }

    public void setKssj( String kssj )
    {
        this.kssj = kssj;
    }

    @Column(name = "jfsj", length = 20)
    public String getJfsj()
    {
        return this.jfsj;
    }

    public void setJfsj( String jfsj )
    {
        this.jfsj = jfsj;
    }

    @Column(name = "dz", length = 50)
    public String getDz()
    {
        return this.dz;
    }

    public void setDz( String dz )
    {
        this.dz = dz;
    }

    @Column(name = "zzj", precision = 18)
    public BigDecimal getZzj()
    {
        return this.zzj;
    }

    public void setZzj( BigDecimal zzj )
    {
        this.zzj = zzj;
    }

    @Column(name = "sl")
    public Long getSl()
    {
        return this.sl;
    }

    public void setSl( Long sl )
    {
        this.sl = sl;
    }

    @Column(name = "jzmj", precision = 18, scale = 0)
    public Long getJzmj()
    {
        return this.jzmj;
    }

    public void setJzmj( Long jzmj )
    {
        this.jzmj = jzmj;
    }

    @Column(name = "ysmj", precision = 18)
    public BigDecimal getYsmj()
    {
        return this.ysmj;
    }

    public void setYsmj( BigDecimal ysmj )
    {
        this.ysmj = ysmj;
    }

    @Column(name = "yssr", precision = 18)
    public BigDecimal getYssr()
    {
        return this.yssr;
    }

    public void setYssr( BigDecimal yssr )
    {
        this.yssr = yssr;
    }

    @Column(name = "xsmj", precision = 18)
    public BigDecimal getXsmj()
    {
        return this.xsmj;
    }

    public void setXsmj( BigDecimal xsmj )
    {
        this.xsmj = xsmj;
    }

    @Column(name = "xssr", precision = 18)
    public BigDecimal getXssr()
    {
        return this.xssr;
    }

    public void setXssr( BigDecimal xssr )
    {
        this.xssr = xssr;
    }

    @Column(name = "symj", precision = 18)
    public BigDecimal getSymj()
    {
        return this.symj;
    }

    public void setSymj( BigDecimal symj )
    {
        this.symj = symj;
    }

    @Column(name = "syje", precision = 18)
    public BigDecimal getSyje()
    {
        return this.syje;
    }

    public void setSyje( BigDecimal syje )
    {
        this.syje = syje;
    }

    @Column(name = "xh")
    public Short getXh()
    {
        return this.xh;
    }

    public void setXh( Short xh )
    {
        this.xh = xh;
    }

}
